GUI Help > Special > getTreeViewRoot

getTreeViewRoot
handle root=getTreeViewRoot(handle gadget)

Description:
Returns a handle to the root item in a treeview. The root item is the first item in the treeview which cannot be seen, but all items in the treeview are children of it. If you wish to "walk" through the treeview and print a list of its items, or a similar task, you should start with the root item.

Return Value:


Parameters:
gadget Handle of a treeview gadget
Remarks:
Do not delete the root treeview item.

See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)